package com.yonyou.cyxdms.basedata.service.vo.brand;

import com.yonyou.cyxdms.basedata.service.vo.packages.PackageDictVO;

/**
 * 配置下拉框查询
 *
 * @author renwd
 * @since 2019/7/16
 */
public class AllPackageVo {

    private Integer modelId;
    /**
     * configCode
     */
    private String value;
    /**
     * configName
     */
    private String text;
    private Integer packageId;
    private String dealerCode;
    private String appId;
    private Integer dataSources;

    public Integer getModelId() {
        return modelId;
    }

    public void setModelId(Integer modelId) {
        this.modelId = modelId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getPackageId() {
        return packageId;
    }

    public void setPackageId(Integer packageId) {
        this.packageId = packageId;
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Integer getDataSources() {
        return dataSources;
    }

    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }

    public AllPackageVo() {
    }

    public AllPackageVo(String name,String code) {
        this.text = name;
        this.value = code;
    }

    public AllPackageVo(PackageDictVO vo) {
        this.modelId = vo.getModelId();
        this.value = vo.getConfigCode();
        this.text = vo.getConfigName();
        this.packageId = vo.getPackageId();
        this.dealerCode = vo.getDealerCode();
        this.appId = vo.getAppId();
        this.dataSources = vo.getDataSources();
    }
}
